package com.chaodev.base.dao;

import com.chaodev.base.dto.ExplanationLineDto;
import com.chaodev.base.model.ExplanationLine;
import com.chaodev.base.model.ExplanationPoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExplanationLineDao {

    /**
     * 新增解说线路
     * @param explanationLine
     * @return
     */
    int insertExplanationLine(ExplanationLine explanationLine);

    /**
     * 修改解说线路
     * @param explanationLine
     * @return
     */
    int updateExplanationLine(ExplanationLine explanationLine);

    /**
     * 删除解说线路
     * @param id
     * @return
     */
    int deleteExplanationLine(@Param(value = "id") String id);

    /**
     * 查询解说线路列表
     * @param explanationLineDto
     * @return
     */
    List<ExplanationLine> selectExplanationLineList(ExplanationLineDto explanationLineDto);

    /**
     * 查询单条导览解说线路
     * @param id
     * @return
     */
    ExplanationLine selectExplanationLineById(@Param(value = "id") String id);

    /**
     * 根据解说线路查询点位
     * @param id
     * @return
     */
    List<ExplanationPoint> selectExplanationPointByLine(@Param(value = "id") String id);

}
